package com.heima.utils.thread;

public class ThreadLocalUtil {
    private static final ThreadLocal<Integer> THREAD_LOCAL = new ThreadLocal<>();

    public static void set(Integer id){
        THREAD_LOCAL.set(id);
    }

    public static Integer get(){
        return THREAD_LOCAL.get();
    }

    public static void clear(){
        THREAD_LOCAL.remove();
    }
}
